package com.lening.iot.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.common.base.BaseServiceImpl;
import com.lening.iot.dao.InmangementDAO;
import com.lening.iot.dto.InmangementDTO;
import com.lening.iot.po.InmangementPO;
import com.lening.iot.service.InmangementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ToDo:
 * @Author：李忠达
 * @date: 2024/6/4 14:06
 */
@Service
public class InmangementServiceImpl extends BaseServiceImpl<InmangementDAO, InmangementPO, InmangementDTO> implements InmangementService{
    @Autowired(required = false)
    private InmangementDAO inmangementDAO;
    @Override
    public Page<InmangementDTO> getAllInm(Page<InmangementDTO> inmangementDTOPage) {
        Page<InmangementDTO> imList = inmangementDAO.getAllInm(inmangementDTOPage);
        return imList;
    }

    @Override
    public List<InmangementDTO> getAll(String communityname) {
        return inmangementDAO.getAll(communityname);
    }

    @Override
    public Page<?> page(InmangementDTO inmangementDTO) {
        return inmangementDAO.getAllInm(inmangementDTO);
    }

    @Override
    public InmangementPO getById(Long id) {
        return this.inmangementDAO.getById(id);
    }
}
